package org.example.strategyPatterns01.Impl;

import org.example.strategyPatterns01.PostageStrategy;
import org.springframework.stereotype.Service;

/**
 * author lyq
 * since 2024-12-02 14:39
 * description 圆通快递邮费计算
 */
@Service
public class YTPostageStrategy implements PostageStrategy {

  @Override
  public Boolean isCompare(Integer type) {
    return type==3;
  }

  @Override
  public Double getPostage(Integer type) {
    return 130.0;
  }
}
